/* 
 * Modbus app for RTU.
 * Copyright (c) 2012  apleilx
 * All rights reserved.
 * no limite
 */

/* ----------------------- Platform includes --------------------------------*/
#define _MBAPP_MODULE_
#include "mbapp.h"
#include "osObjects.h"                                          // RTOS object definitions
#include "common.h"

uint8_t mbTestErrCnt = 0;
uint8_t mbTestOkCnt = 0;
uint32_t TimeCnt;

uint8_t SenSndBuff[32];

void mbTestCallBack(uint8_t CmdSite, uint8_t ErrSt);

/*****************************************************************************//*!
* @brief   	Slave device handle.
*               
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/    


void mbTask(void *argument)
{
    uint16_t usData;
        
    mbxInit(MB_RTU_SLAVE, 19200, MB_PAR_EVEN);
    mbxObj.SlaveId=2;
    
    for(;;){
        usData = 0;
        if(xQueueReceive(qid_mbx, &usData, 500))
        {
            if(usData == 1)
            {
            
            }
        } else {
        
        }
    }
}

